package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.guoguojie.domain.Order;
import cn.sumpu.app.guoguojie.domain.OrderProduct;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface OrderDao {

	public void insertOrder(Order order) throws AppBusinessException;
	
	public void insertOrderProduct(OrderProduct orderProduct)throws AppBusinessException;
	
	public List<Order> getOrderList(Map<String, Object> map)throws AppBusinessException;
	
	public int getOrderCount(Map<String, Object> map)throws AppBusinessException;
	
	public int orderNoReadCount(String company)throws AppBusinessException;
	
	public Order getOrderById(String orderId)throws AppBusinessException;
	
	public void deleteOrder(String orderId)throws AppBusinessException;
	
	public void deleteOrderProduct(String orderId)throws AppBusinessException;
	
	public void updateOrder(Order order) throws AppBusinessException;
	
	public void companyUpdateOrder(Order order) throws AppBusinessException;
	
	public void updateOrderProduct(OrderProduct orderProduct) throws AppBusinessException;
}
